<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>粘性文本整页滚动效果</title>
  <link rel="stylesheet" href="style.css">
</head>

<body>
  <section class="banner">
    <div class="container">
      <div class="sec">
        <h2>Scroll Down</h2>
      </div>
      <div class="sec"></div>
      <div class="sec"></div>
      <div class="sec"></div>
      <div class="sec"></div>
      <div class="sec"></div>
      <div class="sec"></div>

      <div class="content">
        <h2>
          <span style="--i:1">S</span>
          <span style="--i:2">t</span>
          <span style="--i:3">i</span>
          <span style="--i:4">c</span>
          <span style="--i:5">k</span>
          <span style="--i:6">y</span>
        </h2>
      </div>

      <div class="sec">
        <h2>Thank For Watching :)</h2>
      </div>
    </div>
  </section>
</body>

</html>